package org.ioc.com.springaop.demo;

import lombok.extern.slf4j.Slf4j;
import org.ioc.com.springaop.config.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
  @MyAspect
  @RequestMapping("/t1")
    public void t1(){
      log.info("执行t1方法");
  }

    @RequestMapping("/t2")
    public void t2(){
        log.info("执行t2方法");
    }
}
